Draft
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Settings: Add Adre struct (Enabled, URL), IsAdreEnabled(), GetAdreURL() - ChangeSettingsParams: Add EnableAdre, AdreURL for updates - New package managed/services/adre: HolmesGPT HTTP client - Models(), Chat(), ChatStream(), Investigate(), InvestigateStream() - Uses HolmesGPT /api/chat, /api/stream/chat, /api/investigate, etc. Made-with: Cursor
- Introduced new HTTP handlers for ADRE settings, models, chat, alerts, and investigation endpoints in the pmm-managed service. - Updated the Grafana auth server to include permissions for ADRE routes. - Added navigation support for ADRE in the UI, including a dedicated page and chat widget. - Enhanced the main application layout to incorporate the ADRE chat widget. Made-with: Cursor
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## tibi-test #5118 +/- ##
=============================================
- Coverage 47.57% 46.47% -1.10%
=============================================
Files 414 553 +139
Lines 42177 44865 +2688
Branches 0 664 +664
=============================================
+ Hits 20065 20851 +786
- Misses 20134 21929 +1795
- Partials 1978 2085 +107
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Modified README to clarify ADRE settings access for viewers and admins. - Enhanced ChatStream functionality to handle streaming requests more effectively. - Added URL validation in PostSettings handler to ensure proper format. - Updated Grafana auth server to allow viewer access to ADRE settings. - Improved error handling in AdrePage to manage loading states and forbidden access. - Refactored AdreChatWidget to remove unused model fetching logic. - Introduced a utility function to parse and extract text from SSE data in chat streams. Made-with: Cursor
- Updated README to specify that alerts require ADRE to be enabled. - Modified ChatStream to avoid mutating the original request. - Added comprehensive tests for ADRE settings and model retrieval. - Improved URL validation in PostSettings handler to ensure proper format and provide clearer error messages. - Enhanced error handling in various ADRE handlers to ensure consistent responses. Made-with: Cursor
- Changed the ChatStream HTTP request URL from /api/stream/chat to /api/chat for consistency. - Enhanced error message formatting in ChatStream to clarify the source of errors related to the new endpoint. Made-with: Cursor
- Updated ADRE handlers to fetch alerts from Grafana's Alertmanager instead of VMAlert. - Modified README to reflect the change in alert source. - Enhanced error handling and added tests for the new alert fetching functionality. - Refactored related components to improve clarity and maintainability. Made-with: Cursor
- Added support for Basic Authentication in the ADRE client by encoding credentials in the Authorization header. - Updated README to include instructions for using authentication with HolmesGPT URLs. - Improved error handling in the InvestigateStream method to clarify endpoint usage. Made-with: Cursor
- Updated the buildInvestigatePayload function to include optional context and subject fields as records. - Improved the structure of the subject field to encapsulate alert details more effectively. - Ensured that the context field provides additional information about the alert source and count. Made-with: Cursor
…handling - Updated adreChatStream to accept a callback for both content and reasoning chunks, improving the response structure. - Refactored SSE data parsing to return content and reasoning separately, enhancing clarity and usability. - Modified AdreChatPanel to store and display reasoning alongside chat messages, improving user experience. - Improved local storage handling to accommodate reasoning data, ensuring persistence across sessions. Made-with: Cursor
- Implemented a new endpoint `/v1/adre/qan-insights/servicenow` to handle POST requests for creating ServiceNow tickets based on QAN insights. - Enhanced the `ChatRequest` structure to include new fields for frontend tools and decisions. - Updated the investigation response to include confidence metrics and evidence entries. - Added functionality to copy investigation details in markdown and JSON formats from the Investigation Detail Page. - Improved the QAN AI Insights page with a button to create ServiceNow tickets and display the ticket number upon creation. This update enhances the integration of QAN insights with ServiceNow, providing users with better tools for incident management.
- Added a new binary file `pmm-managed-linux` for managing PMM operations. - Updated the `GetQanInsights` handler to return a 200 status with an empty analysis and `cached: false` on cache misses, improving user experience by avoiding misleading 404 errors. - Removed the ServiceNow ticket creation functionality from the QAN AI Insights page, streamlining the interface. - Introduced new utility functions for managing frontend tools, ensuring compatibility with legacy tool names and enhancing the overall user interaction with PMM. - Improved the layout and responsiveness of the Adre page components, ensuring better usability across different screen sizes. This update enhances the QAN insights functionality and user interface, providing a more intuitive experience for users interacting with PMM.
Made-with: Cursor
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5.5.2 to 6.0.0. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@v5.5.2...57e3a13) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [docker/login-action](https://github.com/docker/login-action) from 4.0.0 to 4.1.0. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](docker/login-action@b45d80f...4907a6d) --- updated-dependencies: - dependency-name: docker/login-action dependency-version: 4.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…5217) Agent-Logs-Url: https://github.com/percona/pmm/sessions/dc400a49-230f-400c-a20e-a4f893760826 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ademidoff <81549+ademidoff@users.noreply.github.com> Co-authored-by: Alex Demidoff <alexander.demidoff@percona.com>
* Follow up on PR review * chore: trigger the build * Fix a broken link
…agent - Introduced `daemonset.example.yaml` as a reference for deploying the coroot-node-agent in Kubernetes, including configuration for security context, resource limits, and volume mounts. - Added a README file to provide guidance on using the coroot-node-agent with PMM, detailing installation steps, configuration options, and best practices for deployment. - Enhanced documentation for OTEL ClickHouse schema alignment and rollout strategies, ensuring clarity on database management and schema creation.
Contributor
|
|
…ations - Introduced a new interactive service map panel for PMM, visualizing service connections and synchronized trace data. - Added configuration files including ESLint and TypeScript settings for the new panel. - Created a comprehensive README detailing features, data sources, build, and deployment instructions. - Implemented various components for the service map, including namespace filtering and service node representation. - Updated .gitignore to include build artifacts for the new panel. This commit lays the foundation for enhanced observability in PMM through the service map visualization.
- Enhanced GitHub Actions workflow to include caching for both pmm-app and pmm-service-map dependencies. - Updated Grafana configuration to allow loading of the new pmm-service-map-panel plugin. - Incremented RPM release version to 24 and included the pmm-service-map-panel in the percona-dashboards RPM. - Modified Makefile to install and build dependencies for both pmm-app and pmm-service-map. - Updated the OTel ClickHouse dashboard JSON to use the new ClickHouse-OTEL datasource. - Revised README for the pmm-service-map to clarify deployment instructions within PMM. These changes improve the integration and deployment of the new service map panel, enhancing observability in PMM.
- Introduced a new AI Insights tab in the Details section, allowing users to access AI-generated analysis for queries. - Implemented the AiInsights component to handle fetching and displaying insights, including loading states and error handling. - Added constants and messages for the new tab, including various user notifications and actions. - Created a service for API interactions related to AI insights, including fetching insights and creating ServiceNow tickets. - Updated the Details component to integrate the new AI Insights tab and manage its visibility based on query context. These changes enhance the user experience by providing actionable insights directly within the PMM interface.
- Updated error handling to include additional PostgreSQL error codes for invalid authorization and password issues. - Improved the initWithRoot function to read the PostgreSQL password from a secure file, enhancing security during database creation. - Refined error messages for better clarity and debugging, ensuring that failures in database and user creation are properly reported. These changes improve the robustness and security of the database setup process in the application.
- Added a new function `runPMMAgentSetupHA` to handle the setup of PMM agents in high availability (HA) configurations. - Enhanced the `setupPMMServerHAAgents` function to check for existing nodes and reuse their PMM agent IDs, improving the handling of existing inventory. - Updated error handling to ensure proper feedback when nodes or agents are not found, and to log relevant information during the setup process. These changes streamline the PMM agent setup process in HA environments, ensuring better integration with existing configurations.
…d configurations - Added default vmalert recording rules for PMM Service Map, improving monitoring capabilities. - Updated package.json to include new development dependencies for testing. - Enhanced README to clarify the inclusion of default recording rules and their usage. - Adjusted node dimensions for better visualization in the service map. - Introduced new options for grouping by pod and hiding weak edges, enhancing user control over displayed data. - Improved the service map panel with additional settings for TCP port filtering and edge visibility. These changes significantly enhance the functionality and usability of the PMM service map panel, providing users with more control and better insights into their service topology.
…ures - Added new handlers for managing ADRE conversations, including listing, creating, updating, and deleting conversations. - Introduced conversation-related database models and updated the database schema to support conversation and message storage. - Implemented chat retention settings, allowing automatic purging of old conversations based on user-defined retention days. - Enhanced settings management to include ADRE chat retention days, with validation for acceptable values. - Updated HTTP handlers to support new conversation endpoints and integrated Grafana authentication for user context. These changes significantly enhance the ADRE functionality, providing users with better management of chat conversations and retention policies.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PMM-0
Link to the Feature Build: SUBMODULES-0
If this PR adds, removes or alters one or more API endpoints, please review and add or update the relevant API documentation as well:
If this PR is related to some other PRs in this or other repositories, please provide links to those PRs: